FROM node:${node_image_tag}

RUN apk add --no-cache ca-certificates jq && \
        rm -rf /var/lib/apt/lists/*

RUN yarn config set registry https://registry.npm.taobao.org/ && yarn global add pnpm@x.x.x

ADD script/* /usr/local/bin/

ENTRYPOINT ["/usr/local/bin/nodejs_build"]
